class ToolReg {
  constructor(public express: HTMLInputElement) {}
  check() {
    let val = this.express.value;
    let triangle = /\b(sin|tan|cos|atan|acos|asin)\b/g
    
    return val.replace(triangle, 'Math.$1')
  }
  //           logc(N)
  // loga(N) = -------
  //           logc(a)
  logs(N: number, a: number) {
    return Math.log(N) / Math.log(a)
  }
}

export default ToolReg;